package org.dromara.cms.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;

/**
 * CMS扩展字段对象 cms_model_field
 *
 * @author Spring
 * @date 2024-12-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("cms_model_field")
public class CmsModelField extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 字段ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 字段标识
     */
    private String fieldKey;

    /**
     * 字段类型(text/textarea/number/date/select/radio/checkbox/image/file)
     */
    private String fieldType;

    /**
     * 默认值
     */
    private String defaultValue;


    /**
     * 是否必填(0否 1是)
     */
    private Long required;

    /**
     * 应用模型(article/page/category)
     */
    private String modelType;

    /**
     * 排序号
     */
    private Long sort;

    /**
     * 输入提示
     */
    private String placeholder;

    /**
     * 验证规则
     */
    private String validateRule;

    /**
     * 状态(0正常 1停用)
     */
    private String status;

    /**
     * 备注
     */
    private String remark;


}
